<button class="btn btn-outline-secondary" :disabled="!selectedIds.length"
        @click="syncBatchSiteBSkus()">批量更新B站SKU
</button>
@push("footer")
  <script>
    $(function () {
      app.syncBatchSiteBSkus = function () {
        $http.put("{{admin_route('paypal_site_a.sync_site_b_skus')}}", {
          ids: app.selectedIds,
        }).then((res) => {
          layer.msg("发起同步请求，请稍后刷新界面检查")
        })
      }
    });
  </script>
@endpush
